set1 = {'123','weng',100}
set1.add('Christopher')
element = "is 18 ['year','old']"
set1.update('is','18',['year','old'])
set1.remove(100)
set1.clear()
print(set1)

# import  random
# def RandowNumber():
#     numbers = []
#     for i in range(10):
#         numbers.append(random.randint(0,11))
#     print('使用集合前:{0}'.format(numbers))
#     return numbers
# print('使用集合后{0}:'.format(set(RandowNumber())))

# list2 = []#创建一个空列表用来接收出现一次的元素
# list1 = [1,2,3,4,5,2,3,4]
# for element in list1:
#     if list1.count(element) == 1:
#         list2.append(element)
# print(list2)


# list1 = [1,2,3,4,5,2,3,4]
# set1 = {1,2,3}
# for element in list1:
#     if element in set1:
#         set1.remove(element)
#     else:
#         set1.add(element)
# print(set1)


